package com.work.model

import com.andova.component.net.ResponseModel

abstract class BaseResponseModel<T> : ResponseModel() {
    var data: T? = null
    var errCode: Int = 1
    private var msg: String? = null
    override fun isSuccess(): Boolean = errCode == 0
    override fun getMessage(): String? = msg
    override fun isEmpty(): Boolean = data == null
}